package edu.sctu.practice.class02.liuli.test.test12.liuli;

/**
 * Created by Administrator on 2015/10/20.
 */
public class Bus {
    int tyreNum;
    String color;
    int weight;
    public Bus(int tyreNum,String color,int weight){
        this.tyreNum=tyreNum;
        this.color=color;
        this.weight=weight;
        System.out.println("汽车的颜色为："+color);
        System.out.println("汽车的重量为"+weight+"吨");
        System.out.println("汽车的轮胎有"+tyreNum+"个");
    }
    public void speedUp(){
        System.out.println("汽车正在加速");
    }
    public  void speedDown(){
        System.out.println("汽车正在减速");
    }
    public void pause(){
        System.out.println("汽车停止了");
    }
}
